projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0af1142
)
Make icalendar parse multi-line items correctly
author
Rajeev Narang
<rajeev+jnk@sivalik.com>
Wed, 11 Aug 2021 12:57:43 +0000
(14:57 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 11 Aug 2021 12:57:43 +0000
(14:57 +0200)
* lisp/calendar/icalendar.el (icalendar--parse-summary-and-rest):
Parse multi-line items correctly (bug#37887).
lisp/calendar/icalendar.el
patch
|
blob
|
history
diff --git
a/lisp/calendar/icalendar.el
b/lisp/calendar/icalendar.el
index 3c1bac28f64a9b03cba6346e939d5beb2d295ad5..eaee2e9d951dd31100ccd481eeea11fadeeac92a 100644
(file)
--- a/
lisp/calendar/icalendar.el
+++ b/
lisp/calendar/icalendar.el
@@
-1273,7
+1273,7
@@
Returns an alist."
(concat "\\(" icalendar-import-format-uid "\\)??"))))
;; Need the \' regexp in order to detect multi-line items
(setq s (concat "\\`"
- (replace-regexp-in-string "%s" "\\(
.
*?\\)" s nil t)
+ (replace-regexp-in-string "%s" "\\(
[^z-a]
*?\\)" s nil t)
"\\'"))
(if (string-match s summary-and-rest)
(let (cla des loc org sta url uid) ;; sum